$(function() {
    $("#download-score").on('click', function(event) {
        event.preventDefault();
        var $form = $("#form-search");

        console.log($form.serialize())
        window.open($(this).data('url') + '?' + $form.serialize());
        return false;

        // $form.attr("method",'POST');
        // $form.attr("action", $(this).data('url'));
        // $form.submit();
    });
})